import OrderManagementLayer from '../../views/Order/OrderManagementLayer';
import AfterSaleLayer from '../../views/Order/AfterSaleLayer';
import BulkShipmentLayer from '../../views/Order/BulkShipmentLayer';
import DistributeMgmtLayer from '../../views/Order/DistributeMgmtLayer';
import OrderDetail from '../../views/Order/OrderDetail';
import TemplateDetail from '../../views/Order/TemplateDetail';
// 添加懒加载

const routes = [
  {
    path: 'order-management',
    breadcrumb: '订单管理',
    element: <OrderManagementLayer />,
  },
  {
    path: 'order-detail',
    element: <OrderDetail />,
  },
  {
    path: 'after-sale',
    element: <AfterSaleLayer />,
  },
  {
    path: 'bulk-shipment',
    element: <BulkShipmentLayer />,
  },
  {
    path: 'distribution-management',
    element: <DistributeMgmtLayer />,
  },
  {
    path: 'template-detail',
    element: <TemplateDetail />,
  },
];

export default routes;
